package com.lagou.edu.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @date 2020/5/26 16:49
 */
@FeignClient(value = "lagou-service-email")
@RequestMapping("/email")
public interface EmailFeignClient {

    @GetMapping("/{email}/{code}")
    Boolean sendEmail(@PathVariable("email") String email, @PathVariable("code") String code);
}
